<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="admin_header.jsp"%>
<script type="text/javascript" src="<c:url value="/js/jquery.pagination.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/common.page.js"/>"></script>

<%@ include file="admin_container.jsp"%>
<img src="../images/admin/logo.jpg" />
<div id="content">
<%@ include file="admin_nav.jsp"%>
<div id="right">
<h1 class="topmenu" >查看所有用户信息</h1>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<th width="20" height="29" scope="col">#</th>
		<th width="63" scope="col">用户名</th>
		<th width="130" scope="col">邮件地址</th>
		<th width="59" scope="col">电话</th>
		<th width="56" scope="col">省份</th>
		<th width="79" scope="col">地址</th>		
		<th width="93" scope="col">类型</th>
		<th width="100" scope="col">注册日期</th>
		<th></th>
		<th></th>
	</tr>
	<c:forEach var="account" items="${accountList}" varStatus="status">
		<tr class="member">
			<td height="20">${ status.count}</td>
			<td align="center"><a
				href="<c:url value="/administrator/account.htm"><c:param name="method" value="displayOne"/><c:param name="userID" value="${account.userID}"/></c:url>">${account.userName}</a></td>
			<td align="center">${account.email}</td>
			<td align="center">${account.phone}</td>
			<td align="center">${account.province}</td>
			<td align="center">${account.address}</td>
			<td align="center">${authories[account.type - 1]}</td>
			<td align="center"><fmt:formatDate value="${account.createdDate}" type="date"
				pattern="yyyy-MM-dd"></fmt:formatDate></td>
			<td align="center"><a
				href="<c:url value="/administrator/account.htm"><c:param name="method" value="displayForm"/><c:param name="userID" value="${account.userID }"/></c:url>">编辑</a></td>
			<td align="center"><a
				href="<c:url value="/administrator/account.htm"><c:param name="method" value="delete"/><c:param name="userID" value="${account.userID }"/></c:url>">删除</a></td>
		</tr>
	</c:forEach>
</table>

<div id="pagination" class="pagination"></div>
<input type="hidden" id="totalEntries" value="${totalAccountCount }"/>
</div>
</div>

<%@ include file="admin_footer.jsp"%>